//
// Created by jinbang.li on 2023/9/9.
//

#ifndef OPENPLAYDEMO_IOPPLAYPROXY_H
#define OPENPLAYDEMO_IOPPLAYPROXY_H
#include "IOpPlayer.h"
#include <mutex>

class IOpPlayProxy: public IOpPlayer{
public:
    static IOpPlayProxy* getInstance(){
        static IOpPlayProxy playProxy;
        return &playProxy;
    }
    virtual void Init(void *vm);
    virtual bool open(const char *path);
    virtual bool start();
    virtual void InitView(void *win);

protected:
    IOpPlayProxy(){};
    IOpPlayer *player = 0;
    std::mutex mux;
};

#endif //OPENPLAYDEMO_IOPPLAYPROXY_H
